package tjs.study.notes.mysql.mybatis.domain;

import java.io.Serializable;

/**
 * 临时实例层级表
 *
 * @TableName cmdb_temp_instance_level
 */
public class CmdbTempInstanceLevel implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    private Long id;

    /**
     * 实例id，对应cmdb_temp_instance表主键
     */
    private Long instanceId;

    /**
     * 父实例id，对应cmdb_temp_instance表主键
     */
    private Long parentInstanceId;

    /**
     * 级别
     */
    private Integer level;

    public CmdbTempInstanceLevel(Long parentInstanceId, Long instanceId, Long level) {
        this.parentInstanceId = parentInstanceId;
        this.instanceId = instanceId;
        this.level = level.intValue();
    }

    /**
     * 主键
     */
    public Long getId() {
        return id;
    }

    /**
     * 主键
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 实例id，对应cmdb_temp_instance表主键
     */
    public Long getInstanceId() {
        return instanceId;
    }

    /**
     * 实例id，对应cmdb_temp_instance表主键
     */
    public void setInstanceId(Long instanceId) {
        this.instanceId = instanceId;
    }

    /**
     * 父实例id，对应cmdb_temp_instance表主键
     */
    public Long getParentInstanceId() {
        return parentInstanceId;
    }

    /**
     * 父实例id，对应cmdb_temp_instance表主键
     */
    public void setParentInstanceId(Long parentInstanceId) {
        this.parentInstanceId = parentInstanceId;
    }

    /**
     * 级别
     */
    public Integer getLevel() {
        return level;
    }

    /**
     * 级别
     */
    public void setLevel(Integer level) {
        this.level = level;
    }
}